#pragma once

#include <QWidget>
#include "ui_BottomBar.h"

class BottomBar : public QWidget
{
	Q_OBJECT

public:
	BottomBar(QWidget *parent = nullptr);
	~BottomBar();
	void setPlayIcon();
	void setPauseIcon();
	bool isSliderDown() const;
signals:
	void btnPrevMusic(bool clicked);
	void btnPlayMusic(bool clicked);
	void btnNextMusic(bool clicked);
	void sliderReleasedValue(int value);

public slots:
	void setSliderRange(int min, int max);
	void setSliderValue(int val);

private:
	Ui::BottomBarClass ui;
	void initAllSignal();
	void initBtnSignal();
	void initSliderSignal();
};
